#include "CSingaporeBusFavoritesView.hrh"
#include "CSingaporeBusGenericView.hrh"

RESOURCE AVKON_VIEW r_singapore_bus_favorites_view
	{
	cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
	menubar = r_singapore_bus_favorites_menu;
#if !defined(__SERIES60_3X__) || defined(__S60_50__)
	toolbar = r_singapore_bus_favorites_toolbar;
#endif
	}

RESOURCE MENU_BAR r_singapore_bus_favorites_menu
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_singapore_bus_favorites_menu_pane; }
		};
	}



RESOURCE MENU_PANE r_singapore_bus_favorites_menu_pane
    {
    items=
        {
		MENU_ITEM { command=ESingaporeBusShowMap; txt="Map"; },
		MENU_ITEM { command=ESingaporeBusShowServiceRoute; txt="Service route"; },
        MENU_ITEM { command=ESingaporeBusRefreshPosition; txt="Refresh position"; },
        MENU_ITEM { command=ESingaporeBusRefreshAll; txt="Refresh all"; },
        MENU_ITEM { cascade=r_singapore_bus_favorites_mark_pane; txt="Mark"; },
        MENU_ITEM { cascade=r_singapore_bus_favorites_pane; txt="Pane"; },
        MENU_ITEM { command=ESingaporeBusSettings; txt="Settings"; }
        };
    } 


RESOURCE MENU_PANE r_singapore_bus_favorites_pane
	{
	items =
		{
        MENU_ITEM { command=ESingaporeBusNewFavoritePane; txt="New"; },
        MENU_ITEM { command=ESingaporeBusDeleteFavoritePane; txt="Delete"; },
        MENU_ITEM { command=ESingaporeBusRenameFavoritePane; txt="Rename"; }
		};
	}

RESOURCE MENU_BAR r_singapore_bus_favorites_mark_menu
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_singapore_bus_favorites_mark_pane; }
		};
	}

RESOURCE MENU_PANE r_singapore_bus_favorites_mark_pane
	{
	items =
		{
        MENU_ITEM { command=ESingaporeBusMarkOrigin; txt="Origin"; },
        MENU_ITEM { command=ESingaporeBusMarkDestination; txt="Destination"; },
        MENU_ITEM { command=ESingaporeBusMarkFavorite; txt="Favorite"; },
        MENU_ITEM { command=ESingaporeBusShowMap; txt="Map"; },
        MENU_ITEM { command=ESingaporeBusShowServiceRoute; txt="Service route"; }
		};
	}


RESOURCE AVKON_TOOLBAR r_singapore_bus_favorites_toolbar
    {
    flags = 0x00000080; //KAknToolbarFixed
//    flags = KAknToolbarFixed;
    items =
        {
        TBAR_CTRL
            {
            type = EAknCtButton;
            id = ESingaporeBusShowMap;
            control = AVKON_BUTTON
                {
                flags = 0;
                states =
                    {
        					AVKON_BUTTON_STATE 
        							   {
        							   bmpfile = "\\resource\\apps\\SingaporeBus_aif.mif";
        							   bmpid = EMbmSingaporebus_aifShowmap; 
        							   bmpmask = EMbmSingaporebus_aifShowmap_mask; 
        							   press_bmpid = EMbmSingaporebus_aifShowmap; 
        							   press_bmpmask = EMbmSingaporebus_aifShowmap_mask; 
        							   helptxt = "Map"; 
        							   }
                    };
                };
            },
            TBAR_CTRL
                       {
                       type = EAknCtButton;
                       id = ESingaporeBusRefreshAll;
                       control = AVKON_BUTTON
                           {
                           flags = 0;
                           states =
                               {
                   					AVKON_BUTTON_STATE 
                   							   {
                							   bmpfile = "\\resource\\apps\\SingaporeBus_aif.mif";
                							   bmpid = EMbmSingaporebus_aifStopwatch; 
                							   bmpmask = EMbmSingaporebus_aifStopwatch_mask; 
                							   press_bmpid = EMbmSingaporebus_aifStopwatch; 
                							   press_bmpmask = EMbmSingaporebus_aifStopwatch_mask; 
                							   helptxt = "Refresh";
                   							   }
                               };
                           };
                       },
        TBAR_CTRL
            {
            type = EAknCtButton;
            id = ESingaporeBusSearch;
            control = AVKON_BUTTON
                {
                flags = 0;
                states =
                    {
                    AVKON_BUTTON_STATE
                        {
						   bmpfile = AVKON_BITMAP_FILE; 
						   bmpid = EMbmAvkonQgn_indi_find_glass; 
						   bmpmask = EMbmAvkonQgn_indi_find_glass_mask; 
						   press_bmpid = EMbmAvkonQgn_indi_find_glass; 
						   press_bmpmask = EMbmAvkonQgn_indi_find_glass_mask; 
						   helptxt = "Search"; 
                        }  
                    };
                };
            }
        };
    }

